package org.wisdom.data.jpa.support.events;

import lombok.extern.slf4j.Slf4j;
import org.hibernate.event.spi.PreLoadEvent;
import org.hibernate.event.spi.PreLoadEventListener;
import org.springframework.stereotype.Component;

/**
 * 增加默认查询条件
 * @author 张智研
 * @date 2022/08/29 16:36
 **/
@Slf4j
@Component
public class WisdomPreLoadEvent implements PreLoadEventListener {
    @Override
    public void onPreLoad(PreLoadEvent event) {
        log.info("WisdomPreLoadEvent");
    }
}
